public class Car {
    public String color;
    public String carCard;
    public int year;

    public Car() {

    }

    // 有参构造
    public Car(String c, String cc, int y) {
        color = c;
        carCard = cc;
        year = y;
    }

    public Car(String c, String cc) {
        color = c;
        carCard = cc;
    }

    public void run() {
        System.out.println("车跑的快");
    }

    public void music() {
        System.out.println("车听音乐");
    }
}
